/*
 * EmployeeTest.java
 *
 * This class uses the Employee and SalaryEmployee classes to demonstrate
 * method and constructor overloading.
 *
 * 
 */

package com.javacore.day6.maxsoft2;

/**
 * EmployeeTest class to create instances of SalaryEmployee and
 * display the details.
 * @author 
 */
public class EmployeeTest {
    
    /** Creates a new instance of EmployeeTest */
    public EmployeeTest() {
    }
    
    /**
     * This is the entry point of the application.
     * @param args main method command line arguments
     */
    public static void main(String[] args) {
        
        // Create object of SalaryEmployee for employee John
        Employee objJohn = new SalaryEmployee("John", 3458, 1);
        
        // Create object of SalaryEmployee for employee David
        Employee objDavid = new SalaryEmployee("David", 6541, 2, 200);
        
        // Display the details of employee, John
        objJohn.displayDetails();
        
        // Display the details of employee, David
        objDavid.displayDetails();
        
        Employee objSusan = new WageEmployee("Susan", 12.5, 11, "Beijing", 200);
        Employee objSmith = new WageEmployee("Smith", 15, 15, "London", 100);
        Employee objCornell = new WageEmployee("Cornell", 5, 10, "city" , 50);
        
        objSusan.displayDetails();
        objSmith.displayDetails();
        objCornell.displayDetails();
    }
}
